package com.langsin.crmpro.manager;
import java.util.List;

import com.langsin.crmpro.dao.UserDAO;
import com.langsin.crmpro.model.User;



public class UserManagerImpl implements UserManager {

	private UserDAO userDao;
	
	public UserDAO getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDAO userDao) {
		this.userDao = userDao;
	}

	public boolean check(User user) {
		return false;
	}

	public List<User> queryManager(String sql, Object[] values) {
		return userDao.query(sql, values);
	}

	public void saveManager(User user) {
		userDao.save(user);
	}
	
	public List findByUsername(Object username){
		return userDao.findByUsername(username);
	}

	public Boolean checkUser(String userName, String userPwd) {
		return userDao.checkUser(userName, userPwd);
	}

}
